home *** CD-ROM | disk | FTP | other *** search
- # iSTAR Internet PPP or SLIP login script
- # Copyright 1995 Quarterdeck Corporation
- # 5-9-95
- # 26-10-95 Changed script to work with Cisco Terminal Servers - Andrew Reynolds
- # reynolds@batcomputer.nstn.ca
-
- STRING username
- STRING password
- STRING IPaddress
- STRING framing
-
- # TRACE ON
-
- SetTimeout 60
-
- # Get username from access method
- CfgGetValue "Username" username
- IF result = 0 THEN
- ABORT "Can't load Username from qdeck.ini"
- ENDIF
-
- # get password from access method
- CfgGetValue "Password" password
- IF result = 0 THEN
- ABORT "Can't load Password from qdeck.ini"
- ENDIF
-
- # get framing from access method
- CfgGetValue "Framing" framing
- IF result = 0 THEN
- ABORT "Can't load Framing (SLIP or PPP) from qdeck.ini"
- ENDIF
-
-
- DELAY 2
- CommSend "%r"
- DELAY 2
- CommSend "%r"
- DELAY 2
-
- CommWaitFor "sername:"
- CommSend username
- CommSend "%r"
-
- CommWaitFor "assword:"
- CommSend password
- CommSend "%r"
-
- # Check for end of Cisco command prompt
-
- CommWaitFor ">"
-
- IF framing = "MPSLIP" THEN
- CommSend "slip%r"
- CommWaitFor "our address is"
- CommReadIPaddr IPAddress # IP address should be next word
- CfgSetValue "IPAddress" IPaddress # store the IP address
- PRINT "IPAddress ="; IPAddress
- ELSE
- CommSend "ppp default%r" #new ppp command line for Ciscos
- ENDIF
-
- END
-